<?php
//include("AOChat.php");
class clientChat extends AOChat
{

	public function SystemMessage( $message, $to_id){
		if ($this->isConnected())
			parent::sendMessage($to_id, $message);
	}
	
	public function sendMessage( $channel_id, $message ){		
		if ($this->isConnected())
			$this->sendRawMessage("<i>{$message}</i>",$channel_id);
	}

	public function reloadUser ($user_id){
		if ($this->isConnected())
			parent::reloadInfo($user_id);
	}
	
	public function setQuiet( $user_id, $timeout ){
		if ($this->isConnected())
			parent::setQuiet( $user_id, $timeout );
	}
	
	public function reloadChannels(){
		//echo "good1";
		if ($this->isConnected())
			parent::reloadChannels();	
	}
	
	public function getServerStatus(){
		if ($this->isConnected())
			parent::getServerStatus();
	}
	
	public function getUserOnlineStatus($personage_id){
		if ($this->isConnected())
			parent::getUserOnlineStatus($personage_id);
	}

}
/*$chat = new clientChat();
if($chat->isConnected()){
	
	//print_r($chat->reloadUser(33115));
	//print_r($chat->getUserOnlineStatus(33115));
	//print_r($chat->getServerStatus());
	//$chat->reloadChannels();
	//$chat->setQuiet(33115, 1000);
	//echo "GOOD";
}*/

?>